import java.util.Random;
import java.util.Scanner;

public class game {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int rand = random.nextInt(100);//[0,100)
        //50~100的随机数  random.nextInt(bound:50) +50
        while (true)
        {
            System.out.println("请输入数字：");
            int num = scan.nextInt();

            if(num>rand)
            {
                System.out.println("猜大了");
            } else if (num==rand) {
                System.out.println("nb!!");
                break;
            }else {
                System.out.println("猜小了！");
            }

        }
    }
}
